
const labelOption = {
  show: false
}

const option = {
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  grid: {
    top: '15%',
    left: '2%',
    right: '3%',
    bottom: '20%',
    containLabel: true
    // containLabel: true
  },
  legend: {
    align: 'left',
    center: 'center',
    type: 'plain',
    icon: 'rect',
    bottom: '2%',
    textStyle: {
      color: '#000000',
      fontSize: 12
    },
    itemGap: 20,
    itemWidth: 10,
    itemHeight: 10,
    data: ['本产品指标', '国家标准指标']
  },
  toolbox: {
    show: false
  },
  xAxis: [
    {
      type: 'category',
      axisTick: { show: false },
      axisLine: {
        // 坐标轴轴线相关设置。数学上的x轴
        show: false
      },
      axisLabel: {
        // 坐标轴刻度标签的相关设置
        textStyle: {
          color: '#9BA5A2'
          // fontSize: 9
        }
      },
      data: ['净种子', '发芽率']
    }
  ],
  yAxis: [
    {
      type: 'value',
      axisTick: {
        show: false
      },
      splitNumber: 3,
      axisLabel: {
        formatter: '{value}%',
        textStyle: {
          color: '#9BA5A2'
        }
      },
      axisLine: {
        show: false,
        lineStyle: {
          color: '#E7E9E8'
        }
      }
    }
  ],
  series: [
    {
      name: '本产品指标',
      type: 'bar',
      barGap: 0,
      barWidth: 20,
      label: labelOption,
      emphasis: {
        focus: 'series'
      },
      data: [99.6, 85],
      color: '#F87273'
    },
    {
      name: '国家标准指标',
      type: 'bar',
      label: labelOption,
      barWidth: 20,
      emphasis: {
        focus: 'series'
      },
      data: [98, 85],
      color: '#165DFF'
    }
  ]
}
export default {
  ...option
}
